Hi,
what I saw is
Code:
gruppoa = gruppoa.substring(7,5).toUpperCase();
"gruppoa" is not defined.
Maybe there is a typo and all variables are "gruppoa".
Code:
var gruppoPa = '{TOKEN:ATTRIBUTE_5}'.substring(7, 5).toUpperCase();
then gruppoPa is a 5 character string.
But then the next line which again tries to get a substring(7,5) out of a string which is only 5 characters long, will fail.
And in the rest of your script you use the not defined "gruppoa".
But without more knowledge what you are trying to do,...?
Can't you provide a sample of the problematic questions? *.lss
Best regards
Joffm